import request from "@/utils/serviceApiH2";

/*  视频招聘 */

// 企业发布视频
export function addVideoApi(data) {
  return request({
    url: "/apiH2/member/company/video/companyVideo/addVideo",
    method: "POST",
    data,
  });
}

// 企业视频招聘列表查询
export function selCompanyVideoListApi(params) {
  return request({
    url: `/apiH2/member/company/video/companyVideo/selCompanyVideoList/${params.uid}`,
    method: "GET",
    params: {
      page: params.page,
      pagesize: params.pagesize,
    },
  });
}

// 根据id修改企业视频
export function updateVideoByIdApi(params) {
  return request({
    url: `/apiH2/member/company/video/companyVideo/updateVideoById/${params.id}`,
    method: "PUT",
    params: {
      title: params.title,
      file: params.file,
    },
  });
}

// 根据id修改企业视频展示
export function updateVideoPublicByIdApi(params) {
  return request({
    url: `/apiH2/member/company/video/companyVideo/updateVideoPublicById/${params.id}`,
    method: "PUT",
    params: {
      type: params.type,
    },
  });
}
